#-*- codeing = utf-8 -*-
#@Time : 2020/9/7 13:19
#@Author : 阳某
#@File : doc.py
#@Software : PyCharm
from docx import Document
doc =Document('E:\\文档.docx')
print(doc.paragraphs)
# 输出段落内容
for paragraph in doc.paragraphs:
    print(paragraph.text)
# 输出某段落的文字块内容
paragraph1 = doc.paragraphs[1]
runs = paragraph1.runs
for run in runs:
    print(run.text)